
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@ include file="/include/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
   </script>
<title>高清资料库管理</title>
<script type="text/javascript">
  function del(id){
  if(confirm("确定要进行此操作吗？"))
        {
          $.ajax( {
				type : "POST",
				url : "<%=request.getContextPath()%>/back/interact/delPic.do",
				data:{"pic_s":id},
				dataType: "json",
				async : false,
				success : function(data) {
					if(data.code=="0000"){
			       		 alert("操作成功!");
			       		 location.reload();
			       }else{
			           alert(data.code+data.codeMsg);
			       }
				}
		  });  
		   }
        else 
        {
           return false;
        }    
        }
</script>
</head>
<body  >
	<div class="container">
		<div class="main_top">

			<div class="main_right fr span10">

				<div class="box pl5">
					<div class="box_border">
						<div class="box_top">
							<div class="box_top_l fl">
								<b class="pl15">数据</b>
							</div>
						</div>
						 <div class="box_center">
							<div id="table" class=" fl mt10">
								<div class="box span10 oh">
									<table width="100%" border="0" cellpadding="0" cellspacing="0"
										class="list_table">
										<tr>
											<th width="1.5%">序号</th>
											<th width="7%">图片</th>
											<th width="5%">创建时间</th>
											<th width="5%">操作</th>
										</tr>
										 <c:if test="${fn:length(interActPics)==0}"><tr class="tr"><td align="center" colspan="4">暂无数据</td> </tr></c:if>
										<c:if test="${fn:length(interActPics)>0}">
										<c:forEach items="${interActPics}" var="manager" varStatus="abc">
											<tr class="tr">
											    <td align="center"><c:out value="${abc.index + 1}" /></td>
												<td align="center"><a href="<%=imgPath %>${manager.pic_b}" data-lightbox="image-1"  > <IMG   width="50" height="50" src="<%=imgPath %>${manager.pic_s}"/></a></td>
												<td align="center"><c:out value="${manager.create_time}" /></td>
												<td align="center">
												<input type="button" class="new_btn new_btn_delete" value="删除"  onclick="javascript:del('${manager.pic_s}');" >
												</td>
											</tr>
										</c:forEach>
                                     </c:if>
									</table>
								<%-- 	<div class="fr fontblack mt25 mb20 mr20">
										每页条数：<a href="<%=request.getContextPath()%>/back//getActPics.do?pz=5&"
											class="${pageSize == 5 ? 'fontpink' : ''}">5</a> | <a
											href="<%=request.getContextPath()%>/back/student/querypic.do?pz=10"
											class="${pageSize == 10 ? 'fontpink' : ''}">10</a> | <a
											href="<%=request.getContextPath()%>/back/student/querypic.do?pz=20"
											class="${pageSize == 20 ? 'fontpink' : ''}">20</a>
									</div>
									<div class="fr fontblack mt5 mb20 mr20">
										<jsp:include page="../template/commonPagination.jsp">
											<jsp:param name="url" value="query.do?"></jsp:param>
										</jsp:include>
									</div> --%>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="clear"></div>
		</div>

	</div>
</body>

</html>
